using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter40
{
	/// <summary>
	/// Example04: Compton Scattering at 45^{\circle}
	/// X-rays of wavelength 0.200000 nm are scattered 
	/// from a block of material. 
	/// The scattered x-rays are observed at an angle 
	/// of 45.0^{\circle} to the incident beam. 
	/// Calculate their wavelength.
	/// </summary>
	public class Example04
	{
		public Example04()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Length l = new L.Length();
			l.m = 0.2E-9;
			L.Angle theta = new L.Angle();
			theta.rad = 45.0*Math.PI/180.0;
		
			double lp = L.QuantumPhysics.ScatteredWavelengthInComptonEffect(l,theta);
			result+=Convert.ToString(lp);
		}
	}
}
